﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EggsGame
{
    public abstract class Egg
    {
        // 蛋仔的名称
        public string EggName { get; set; }

        public void Display()
        {
            Console.WriteLine($"名称：{EggName}");
        }

        // 行为: 游泳  飞   叫
        public abstract void Swim();
        public abstract void Fly();
        public abstract void Sound();
    }
}
